Always return FALSE from the notebook leave_notify handler
authorPaolo Borelli <pborelli@gnome.org>
Tue, 14 Jan 2014 19:29:46 +0000 (20:29 +0100)
committerPaolo Borelli <pborelli@gnome.org>
Tue, 14 Jan 2014 19:29:46 +0000 (20:29 +0100)
As discussed on IRC with Benjamin, this should not make much
difference in practice, but it is more correct

gtk/gtknotebook.c

index 175b61c803cd7d998a6dac1c1aa1ca1e1cd2e6c8..0a532369ba0fa653f84788e71ef1a240e764d1e6 100644 (file)
@@ -3305,21 +3305,21 @@ gtk_notebook_leave_notify (GtkWidget        *widget,
   GtkNotebookPrivate *priv = notebook->priv;
   gint x, y;
 
-  if (!get_widget_coordinates (widget, (GdkEvent *)event, &x, &y))
-    return FALSE;
-
-  if (priv->prelight_tab != NULL)
+  if (get_widget_coordinates (widget, (GdkEvent *)event, &x, &y))
     {
-      tab_prelight (notebook, (GdkEvent *)event);
-    }
+      if (priv->prelight_tab != NULL)
+        {
+          tab_prelight (notebook, (GdkEvent *)event);
+        }
 
-  if (priv->in_child)
-    {
-      priv->in_child = 0;
-      gtk_notebook_redraw_arrows (notebook);
+      if (priv->in_child)
+        {
+          priv->in_child = 0;
+          gtk_notebook_redraw_arrows (notebook);
+        }
     }
 
-  return TRUE;
+  return FALSE;
 }
 
 static GtkNotebookPointerPosition